DELETE FROM C1_ENTITY_RELATIONSHIP T WHERE INSTR(','||:ids||',',','||T.ID||',') > 0